package com.opdar.athena.base;

/**
 * Created by shiju on 2017/1/24.
 */
public class Constants {
    public static final int SESSION_TIMEOUT = 30*60*1000;//30分钟
    public static final class Message{
        public static final int READY = 1;
    }
    public static String GLOBAL_PROPERTIES = "config/config.properties";
    public enum ErrorCode{
        APP_NOT_EXIST(100,"AppId不存在，请检查后重试！"),
        SIGN_ERROR(101,"签名验证错误"),
        USER_IS_EXIST(102,"用户名已存在"),
        USER_AUTH_FAILURE(103,"用户认证失败"),
        USER_NOT_EXIST(104,"用户不存在"),
        APP_PARAMETER_ERROR(105,"应用参数错误"),
        TOKEN_IS_EXPIRE(106,"Token已过期"),
        PARAMATER_IS_EMPTY(107,"参数为空"),
        RECIVER_IS_NOT_EXIST(108,"接收方不存在"),
        MESSAGE_IS_NOT_EXIST(109,"消息不存在")
        ;
        private int code;
        private String message;
        ErrorCode(int code,String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
